<template>
  <el-container>
    <el-header>
      <el-row>
        <el-col :span="4">
          双鬼带单
        </el-col>
        <el-col :span="16">
          <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal">
            <el-menu-item index="1">处理中心</el-menu-item>
            <el-submenu index="2">
              <template slot="title">我的工作台</template>
              <el-menu-item index="2-1">选项1</el-menu-item>
              <el-menu-item index="2-2">选项2</el-menu-item>
              <el-menu-item index="2-3">选项3</el-menu-item>
              <el-submenu index="2-4">
                <template slot="title">选项4</template>
                <el-menu-item index="2-4-1">选项1</el-menu-item>
                <el-menu-item index="2-4-2">选项2</el-menu-item>
                <el-menu-item index="2-4-3">选项3</el-menu-item>
              </el-submenu>
            </el-submenu>
            <el-menu-item index="3" disabled>消息中心</el-menu-item>
            <el-menu-item index="4"><a href="https://www.ele.me" target="_blank">订单管理</a></el-menu-item>
          </el-menu>
        </el-col>
        <el-col :span="4" class="pull-right">
          <el-button @click="$router.push({ path: '/' })">GitHub</el-button>
        </el-col>
      </el-row>
    </el-header>
    <el-container class="content-v">
      dd
    </el-container>
  </el-container>
</template>

<script>
export default {
  name: "Parent",
  data() {
    return {
      activeIndex: '1',
    };
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>

<style scoped>
.el-header {
  height: 60px;
  background-color: white;
  line-height: 60px;
}

.footer {
  text-align: center;
  line-height: 60px;
  width: 200px;
  background-color: #545c64;
  color: #fecf57;
  clear: both;
  position: absolute;
  margin-top: -60px;
  bottom: 0px;
}

.aside {
  width: 200px !important;
  height: 100% !important;
  background-color: #545c64;
}

.el-container {
  height: 100%;
}

.el-header {
  height: 60px;
  background-color: white;
  line-height: 60px;
}

.el-header > span,
.el-header .el-dropdown {
  font-size: 18px;
}

.el-main {
  text-align: left;
  color: #333;
}
</style>